//package com.translate.web.api.controller;
//
//import javax.servlet.http.HttpServletRequest;
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.validation.annotation.Validated;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import com.response.vo.ResponseModel;
//import com.jwt.IJwtUtil;
//import com.translate.web.param.ClientAnalysisParam;
//import com.translate.web.service.ICustomerService;
//import com.translate.vo.ClientAnalysisVO;
//
//@RestController
//@RequestMapping("clientAnalysis")
//public class ClientAnalysisController {
//
//	private ICustomerService customerService;
//
//	private IJwtUtil jwtUtil;
//
//	/**
//	 * 客户分析
//	 */
//	public ClientAnalysisController(ICustomerService customerService) {
//		this.customerService = customerService;
//	}
//
//	@PostMapping("getClientAnalysisVO")
//	public ResponseModel<ClientAnalysisVO> getClientAnalysisVO(@RequestBody @Validated ClientAnalysisParam analysisParam,
//			HttpServletRequest httpServletRequest) {
//
//		return ResponseModel.<ClientAnalysisVO>success(this.customerService.getAnalysisVO(analysisParam,
//				ClientAnalysisVO.class, (int) this.getUserId(httpServletRequest)));
//	}
//
//	protected long getUserId(HttpServletRequest httpServletRequest) {
//		return jwtUtil.getId(httpServletRequest.getHeader(jwtUtil.getJwtConfig().getHeader()));
//	}
//
//	@Autowired
//	public void setJwtUtil(IJwtUtil jwtUtil) {
//		this.jwtUtil = jwtUtil;
//	}
//
//}
